_helo = _this select (count _this - 1);
_spwn = _this select 3;
_callsign = _this select 1;

//hint format ["%1",_this];

_pilot = driver _helo;
_gunner = gunner _helo;
_grp = group _pilot;

_mkrname = format ["%1station",_helo];
deletemarkerLocal _mkrname;
_mkrname2 = format ["%1station2",_helo];
deletemarkerLocal _mkrname2;

["RTB",[player,_pilot,_callsign]] execVM (RUM_PATH+"AHel\radiodialogs.sqf");
sleep 5;

	_wpAH=_grp addWaypoint [getpos _spwn, 0];
	_wpAH setWaypointType "MOVE";
	_wpAH setWaypointSpeed "LIMITED";
	_wpAH setWaypointBehaviour "CARELESS";
	_wpAH setWaypointCombatMode "BLUE";
	_wpAH setWaypointCompletionRadius 50;
	_helo flyInheight 32;
	sleep 4.75;
	deleteWaypoint [_grp, 0];

	_wpAH=_grp addWaypoint [getpos _spwn, 0];
	_wpAH setWaypointType "MOVE";
	_wpAH setWaypointSpeed "NORMAL";
	_wpAH setWaypointBehaviour "CARELESS";
	_wpAH setWaypointCombatMode "BLUE";
	_wpAH setWaypointCompletionRadius 200;
	_grp setcurrentWaypoint _wpAH;
	_helo flyInheight RUM_AHEL_flyHeight;


// fwp2=_grp addWaypoint [getpos _spwn, 0];
// fwp2 setWaypointType "MOVE";
// fwp2 setWaypointSpeed "NORMAL";
// fwp2 setWaypointCombatMode "BLUE";
// fwp2 setWaypointCompletionRadius 200;

waitUntil{(!alive _helo) or (moveToCompleted _pilot)};

sleep 1;
deleteVehicle _pilot;
deleteVehicle _gunner;
deleteVehicle _helo;

sleep RUM_AHel_ReSupTime;
RUM_AHelAircraft_Spawn = RUM_AHelAircraft_Spawn + [_this];

if(true)exitwith{};